<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>购物车管理</title>
    <link rel="stylesheet" href="/admin/css/categoryManage.css">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <script type="text/javascript" src="/static/js/jquery-3.6.0.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>

</head>
<body><h2 style="text-align: center;">购物车管理</h2>
<button type="button" class="col-md-2 btn btn-success btn-add"  data-toggle="modal" data-target="#myModal4" style='margin-left: 454px;'><span class="glyphicon glyphicon-plus" aria-hidden="true">添加</span></button>
<div class="modal fade" id="myModal4" tabindex="-1" role="dialog" aria-labelledby="myModalLabel4">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel4">操作</h4>
            </div>
            <div class="modal-body">
                <%--                添加操作--%>
                id：<input type="text" name="name" id="id1" value="编号" onblur="if(this.value==''){this.value='编号'}" onfocus="if(this.value=='编号'){this.value=''}" style="border: 1px solid darkgrey;opacity: 0.5;width: 60px">
                品类名：<input type="text" name="name" id="name" value="请输入品类名" onblur="if(this.value==''){this.value='请输入品类名'}" onfocus="if(this.value=='请输入品类名'){this.value=''}" style="border: 1px solid darkgrey;opacity: 0.5;width: 150px;">
                状态(1.上架)：<input type="text" name="status" id="status" value="1" onblur="if(this.value==''){this.value='1'}" onfocus="if(this.value=='1'){this.value=''}"  style="border: 1px solid darkgrey;opacity: 0.5;margin-left: 5px;width: 150px;">
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <%--                <button type="button" class="btn btn-primary"></button>--%>
                <input id="refer" type="submit" value="提交" class="btn btn-primary">
            </div>
        </div>
    </div>
</div>
<table class="table table-hover table-one">
</table>
<script>
    $('#myModal').on('shown.bs.modal', function () {
        $('#myInput').focus();
    });
</script>
</body>
</html>
